package ua.kpi_java_training.evgeniygusar.module2;

class Controller {
    public static void main(String [] args) {
        PoolInAction startLifeInPool = new PoolInAction();
        Pool mypool = new Pool();

        AllPredators predatorsObject = new AllPredators();
        AllVictims victimsObject = new AllVictims();
        predatorsObject.addPredator();
        System.out.print("Predator 1: ");
        predatorsObject.getPredator(0).showCoordinats();

        victimsObject.addVictim();
        System.out.print("Victim 1: ");
        victimsObject.getVictim(0).showCoordinats();

        for(int current_step=1; current_step<=mypool.getNumberOfCycles(); current_step++) {
            startLifeInPool.startAction(current_step);
        }

        startLifeInPool.showStatistics();
    }
}